home *** CD-ROM | disk | FTP | other *** search
- #ifndef DialogView_First
- #ifdef __GNUG__
- //pragma once
- #pragma interface
- #endif
- #define DialogView_First
-
- #include "View.h"
-
- //---- DialogView --------------------------------------------------------------
-
- class DialogView: public View {
- protected:
- VObject *dialogRoot;
-
- public:
- MetaDef(DialogView);
-
- DialogView(EvtHandler *eh= 0);
- ~DialogView();
-
- void Open(bool mode= TRUE);
- void SetOrigin(Point at);
- void SetExtent(Point e);
- void ExtentChanged(VObject *vop);
- Metric GetMinSize();
- virtual VObject *DoCreateDialog();
- void CalcLayout(bool redraw= TRUE);
- VObject *SetDialog(VObject*, bool redraw= TRUE); // returns old dialogtree
- VObject *GetDialogRoot();
- void Draw(Rectangle);
- VObject *Detect(BoolFun f, void *arg);
-
- //---- event handling
- Command *DispatchEvents(Point lp, Token &t, Clipper*);
-
- virtual void EnableItem(int id, bool b= TRUE);
- void DisableItem(int id)
- { EnableItem(id, FALSE); }
- VObject *FindItem(int id);
-
- //---- keyboard focus
- void CollectParts(class Collection *);
- };
-
- #endif
-
-